package com.nidu.demo.user.convertor;

import com.nidu.demo.base.BaseConvertor;
import com.nidu.demo.convertor.MapStructConfig;
import com.nidu.demo.user.dto.UserPositionCO;
import com.nidu.demo.user.mapper.dataobject.UserPositionDO;
import com.nidu.demo.user.model.UserPosition;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(config = MapStructConfig.class)
public interface UserPositionConvertor extends BaseConvertor<UserPositionDO, UserPosition, UserPositionCO> {
    
    @Override
    @Mapping(target = "createTime", ignore = true)
    @Mapping(target = "createBy", ignore = true)
    @Mapping(target = "updateBy", ignore = true)
    UserPositionDO toDataObject(UserPosition userpost);
} 